package com.lin.missyou.service;

import com.lin.missyou.models.User;
import com.lin.missyou.repository.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    private UserRepository userRepository;

    public User getUserById(Long uid) {
        return userRepository.findFirstById(uid);
    }
}
